# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xman
pkgver=1.1.6
pkgrel=1
pkgdesc="Unix manual page viewer"
arch=(loong64 x86_64)
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw' 'libxt' 'libx11' 'glibc')
makedepends=('xorg-util-macros' 'xorgproto' 'libxmu')
source=(https://xorg.freedesktop.org/archive/individual/app/xman-${pkgver}.tar.xz{,.sig})
sha512sums=('3063bf7fa54a679993baad681d9a77569c101b7e27e012083d11a2a0900c8e30a9d052ef23d30cbc86ff22505701d23df1fa3b9c714ef733628f2bc132026530'
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>

build() {
  cd xman-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd xman-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
